<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<div class="sf_admin_filter">
  <?php if ($form->hasGlobalErrors()): ?>
    <?php echo $form->renderGlobalErrors() ?>
  <?php endif; ?>
<div class="cajapermisobus" align="center">
  <form action="<?php echo url_for('sfguardgroup_collection', array('action' => 'filter')) ?>" method="post">
    <table cellspacing="0">
      <tbody>
        <?php foreach ($configuration->getFormFilterFields($form) as $name => $field): ?>
        <?php if ((isset($form[$name]) && $form[$name]->isHidden()) || (!isset($form[$name]) && $field->isReal())) continue ?>
          <?php include_partial('grupos/filters_field', array(
            'name'       => $name,
            'attributes' => $field->getConfig('attributes', array()),
            'label'      => $field->getConfig('label'),
            'help'       => $field->getConfig('help'),
            'form'       => $form,
            'field'      => $field,
            'class'      => 'sf_admin_form_row sf_admin_'.strtolower($field->getType()).' sf_admin_filter_field_'.$name,
          )) ?>
        <?php endforeach; ?>
      </tbody>
    </table><br>
      <?php echo $form->renderHiddenFields() ?>
              <div align="center"><button type="submit" class="button button-azul"><span><div id="imagenes" valign="middle"><div class="spriteslimpiarbus" id="limpiarbus_jpg"></div></div> <div id="textobutton" class="enlace"><?php echo link_to(__('Limpiar', array(), 'sf_admin'), 'sfguardpermission_collection', array('action' => 'filter'), array('query_string' => '_reset', 'method' => 'post')) ?></div></span></button>&nbsp;
              <button type="submit" class="button button-azul"><span><div id="imagenes" valign="middle"><div class="spriteslupabus" id="lupabus_jpg"></div></div> <div id="textobutton"><?php echo __('Buscar', array(), 'sf_admin') ?></div></span></button></div>
  </form>
</div>  
</div>
